package org.deng.learn.lambda;

/**
 * @author 邓力宾
 * @date 2020/12/17 14:47
 * @desc 累加器
 */

public class Adder {
    private boolean flag = false;
    public Adder() {
    }

    public Adder(boolean flag){
        this.flag = flag;
    }

    static int add(int i){
         return i + 1;
     }

     int add2(int i){
         return i + 2;
     }
}
